package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName makesheet
 */
@TableName(value ="makesheet")
@Data
public class Makesheet implements Serializable {
    /**
     * ID
     */
    private String msId;

    /**
     * 操作票编号
     */
    private String msCode;

    /**
     * 操作票类型，见码值
     */
    private String msType;

    /**
     * 操作票状态；待商定
     */
    private Integer msState;

    /**
     * 单位
     */
    private String msDept;

    /**
     * 发令人ID
     */
    private String msSendid;

    /**
     * 发令人
     */
    private String msSender;

    /**
     * 收令人ID
     */
    private String msReceiverid;

    /**
     * 收令人
     */
    private String msReceiver;

    /**
     * 发令时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendTime;

    /**
     * 操作开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operaStarttime;

    /**
     * 操作结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operaEndtime;

    /**
     * 操作类型：0-监护操作，1-单人操作
     */
    private String operaType;

    /**
     * 操作任务
     */
    private String operaTask;

    /**
     * 备注
     */
    private String remark;

    /**
     * 操作人id
     */
    private String operatorid;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 监护人id
     */
    private String guardianid;

    /**
     * 监护人
     */
    private String guardian;

    /**
     * 值班负责人ID
     */
    private String dutyPrincipalid;

    /**
     * 值班负责人
     */
    private String dutyPrincipal;

    private List<MakesheetDetails> msdtls;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Makesheet other = (Makesheet) that;
        return (this.getMsId() == null ? other.getMsId() == null : this.getMsId().equals(other.getMsId()))
            && (this.getMsCode() == null ? other.getMsCode() == null : this.getMsCode().equals(other.getMsCode()))
            && (this.getMsType() == null ? other.getMsType() == null : this.getMsType().equals(other.getMsType()))
            && (this.getMsState() == null ? other.getMsState() == null : this.getMsState().equals(other.getMsState()))
            && (this.getMsDept() == null ? other.getMsDept() == null : this.getMsDept().equals(other.getMsDept()))
            && (this.getMsSendid() == null ? other.getMsSendid() == null : this.getMsSendid().equals(other.getMsSendid()))
            && (this.getMsSender() == null ? other.getMsSender() == null : this.getMsSender().equals(other.getMsSender()))
            && (this.getMsReceiverid() == null ? other.getMsReceiverid() == null : this.getMsReceiverid().equals(other.getMsReceiverid()))
            && (this.getMsReceiver() == null ? other.getMsReceiver() == null : this.getMsReceiver().equals(other.getMsReceiver()))
            && (this.getSendTime() == null ? other.getSendTime() == null : this.getSendTime().equals(other.getSendTime()))
            && (this.getOperaStarttime() == null ? other.getOperaStarttime() == null : this.getOperaStarttime().equals(other.getOperaStarttime()))
            && (this.getOperaEndtime() == null ? other.getOperaEndtime() == null : this.getOperaEndtime().equals(other.getOperaEndtime()))
            && (this.getOperaType() == null ? other.getOperaType() == null : this.getOperaType().equals(other.getOperaType()))
            && (this.getOperaTask() == null ? other.getOperaTask() == null : this.getOperaTask().equals(other.getOperaTask()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getOperatorid() == null ? other.getOperatorid() == null : this.getOperatorid().equals(other.getOperatorid()))
            && (this.getOperator() == null ? other.getOperator() == null : this.getOperator().equals(other.getOperator()))
            && (this.getGuardianid() == null ? other.getGuardianid() == null : this.getGuardianid().equals(other.getGuardianid()))
            && (this.getGuardian() == null ? other.getGuardian() == null : this.getGuardian().equals(other.getGuardian()))
            && (this.getDutyPrincipalid() == null ? other.getDutyPrincipalid() == null : this.getDutyPrincipalid().equals(other.getDutyPrincipalid()))
            && (this.getDutyPrincipal() == null ? other.getDutyPrincipal() == null : this.getDutyPrincipal().equals(other.getDutyPrincipal()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMsId() == null) ? 0 : getMsId().hashCode());
        result = prime * result + ((getMsCode() == null) ? 0 : getMsCode().hashCode());
        result = prime * result + ((getMsType() == null) ? 0 : getMsType().hashCode());
        result = prime * result + ((getMsState() == null) ? 0 : getMsState().hashCode());
        result = prime * result + ((getMsDept() == null) ? 0 : getMsDept().hashCode());
        result = prime * result + ((getMsSendid() == null) ? 0 : getMsSendid().hashCode());
        result = prime * result + ((getMsSender() == null) ? 0 : getMsSender().hashCode());
        result = prime * result + ((getMsReceiverid() == null) ? 0 : getMsReceiverid().hashCode());
        result = prime * result + ((getMsReceiver() == null) ? 0 : getMsReceiver().hashCode());
        result = prime * result + ((getSendTime() == null) ? 0 : getSendTime().hashCode());
        result = prime * result + ((getOperaStarttime() == null) ? 0 : getOperaStarttime().hashCode());
        result = prime * result + ((getOperaEndtime() == null) ? 0 : getOperaEndtime().hashCode());
        result = prime * result + ((getOperaType() == null) ? 0 : getOperaType().hashCode());
        result = prime * result + ((getOperaTask() == null) ? 0 : getOperaTask().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getOperatorid() == null) ? 0 : getOperatorid().hashCode());
        result = prime * result + ((getOperator() == null) ? 0 : getOperator().hashCode());
        result = prime * result + ((getGuardianid() == null) ? 0 : getGuardianid().hashCode());
        result = prime * result + ((getGuardian() == null) ? 0 : getGuardian().hashCode());
        result = prime * result + ((getDutyPrincipalid() == null) ? 0 : getDutyPrincipalid().hashCode());
        result = prime * result + ((getDutyPrincipal() == null) ? 0 : getDutyPrincipal().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", msId=").append(msId);
        sb.append(", msCode=").append(msCode);
        sb.append(", msType=").append(msType);
        sb.append(", msState=").append(msState);
        sb.append(", msDept=").append(msDept);
        sb.append(", msSendid=").append(msSendid);
        sb.append(", msSender=").append(msSender);
        sb.append(", msReceiverid=").append(msReceiverid);
        sb.append(", msReceiver=").append(msReceiver);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", operaStarttime=").append(operaStarttime);
        sb.append(", operaEndtime=").append(operaEndtime);
        sb.append(", operaType=").append(operaType);
        sb.append(", operaTask=").append(operaTask);
        sb.append(", remark=").append(remark);
        sb.append(", operatorid=").append(operatorid);
        sb.append(", operator=").append(operator);
        sb.append(", guardianid=").append(guardianid);
        sb.append(", guardian=").append(guardian);
        sb.append(", dutyPrincipalid=").append(dutyPrincipalid);
        sb.append(", dutyPrincipal=").append(dutyPrincipal);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}